ClutterActor:width is a floating point property, so it will not be
automatically rounded to non-fractional values that properly align
to pixels. To fix the resulting blurriness, add explicit rounding.
https://bugzilla.gnome.org/show_bug.cgi?id=768317
this._level = Math.max(0, Math.min(value, 100));
let alloc = this.actor.get_allocation_box();
- let newWidth = (alloc.x2 - alloc.x1) * this._level / 100;
+ let newWidth = Math.round((alloc.x2 - alloc.x1) * this._level / 100);
if (newWidth != this._bar.width)
this._bar.width = newWidth;
}